package swingFiles;

import javax.swing.JPanel;
import java.awt.Color;
import javax.swing.JLabel;
import java.awt.Font;
import javax.swing.JTextField;
import javax.swing.SwingConstants;
import javax.swing.JButton;

/**
 * Creates the panel for a member to submit a review of a class.
 * 
 * @author Emily Linniman
 * @version December 1, 2014
 *
 */
@SuppressWarnings("serial")
public class reviewPanel extends JPanel {
	
	/** The field to input the rating of the class. */
	private JTextField ratingField;
	
	/** The field to input the review of the class. */
	private JTextField reviewField;

	/**
	 * Create the panel.
	 */
	public reviewPanel() {
		setBackground(Color.ORANGE);
		setLayout(null);
		
		JLabel headerLabel = new JLabel("Submit a Review");
		headerLabel.setFont(new Font("Arial", Font.PLAIN, 18));
		headerLabel.setBounds(146, 17, 143, 16);
		add(headerLabel);
		
		JLabel ratingLabel = new JLabel("Rating:");
		ratingLabel.setFont(new Font("Arial", Font.PLAIN, 15));
		ratingLabel.setBounds(101, 69, 61, 16);
		add(ratingLabel);
		
		ratingField = new JTextField();
		ratingField.setHorizontalAlignment(SwingConstants.CENTER);
		ratingField.setBounds(249, 63, 134, 28);
		add(ratingField);
		ratingField.setColumns(1);
		
		JLabel reviewLabel = new JLabel("Review:");
		reviewLabel.setFont(new Font("Arial", Font.PLAIN, 15));
		reviewLabel.setBounds(101, 125, 61, 16);
		add(reviewLabel);
		
		reviewField = new JTextField();
		reviewField.setBounds(249, 119, 134, 115);
		add(reviewField);
		reviewField.setColumns(200);
		
		JButton submitButton = new JButton("Submit");
		submitButton.setFont(new Font("Arial", Font.PLAIN, 15));
		submitButton.setBounds(166, 253, 117, 29);
		add(submitButton);

	}

}
